@extends('common')
@section('content')
    <style type="text/css">
        span{
            margin-left: 20px;
        }
        ul li{
            float: left;
            margin-left: 20px;
            list-style-type: none;
        }
        ul li span{
            display:inline-block;
            margin-left:5px;
            width:20px;
            height:13px;
            border: 1px solid #333;
        }
    </style>

    <table class="table table-bordered table-hover definewidth m10" style="margin-top:20px;"><br>
              <ul>
               <li style="margin-left: 0">已预约<span style="background: #009900"></span></li>
               <li>失约<span style="background: #01FF33"></span></li>
               <li>未预约<span style="background: #00CC66"></span></li>
              </ul>  
            </td>

   </tr>
</table>



    <table class="table table-bordered table-hover definewidth m10" style="margin-left:10px;">

        <tr>
        <td>时间</td>
        <td>使&nbsp;用&nbsp;车&nbsp;辆</td>
        <td>07:00-08:00</td>
        <td>08:00-09:00</td>
        <td>09:00-10:00</td>
        <td>10:00-11:00</td>
        <td>11:00-12:00</td>
        <td>12:30-13:30</td>
        <td>13:30-14:30</td>
        <td>14:30-15:30</td>
        <td>15:30-16:30</td>
        <td>16:30-17:30</td>
        <td>18:00-19:00</td>
        <td>19:00-20:00</td>
        <td>20:00-21:00</td>
        </tr>
    @foreach($model as $k => $v)
        <tr>
            <td>{{$v['c_monch']}}</td>
            <td>{{$v['c_num']}}</td>
            
            @foreach($v['ord_stu_id'] as $val)
            
            @if($val!==0)

            <td style="background: #009900"><span style="color:#FFFFFF">

            {{$val}}</span></td>
            @else<td style="background: #00CC66"><span style="color:#FFFFFF">{{'未预约'}}</span></td>@endif

            
            @endforeach
                 
        </tr>
    @endforeach
    </table>

@stop